package com.innohub.bench.runner;

import org.punit.reporter.chart.OverviewReporter;
import org.punit.reporter.chart.pdf.PDFRender;
import org.punit.runner.ConcurrentRunner;

public class RunnerLoop {
	public static void main(String[] args) {
		int threadNum = 100;

		// 第一次数据总不准
		int loopNum = 3;

		for (int i = 0; i < loopNum; i++) {
			ConcurrentRunner runner = new ConcurrentRunner(threadNum);

			if (i == 2) {
				runner.addEventListener(new OverviewReporter(new PDFRender()));
			}

			runner.run(Tester.class);
		}
	}
}
